import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

//vant框架引用
import {NavBar,Toast,Popup, Loading , Sticky } from 'vant';
Vue.use(NavBar).use(Toast).use(Popup).use(Loading).use(Sticky);

// 移动端适配
window.onload = function() {
	var body = document.querySelector("body");
	var ww = body.offsetWidth / 7.5;
	var html = document.querySelector("html");
	html.style.fontSize = ww + "px";
}

//返回上一页统一管理
Vue.prototype.$routerBack = () => {
	router.back()
}

import Apis from './api'
Vue.prototype.$apis = Apis;

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
